<html>
<head>
	<meta charset="UTF-8">
	<title>修改视频信息</title>
</head>
<?php 
$row=$data['video'];
 ?>

<body>
	<table border="1" align="center" width="70%">
	<form method="post" action="admin.php?c=video&m=updatevideo" enctype="multipart/form-data">
	<input type="hidden" name="vid" value="<?php echo $row['vid']; ?>"> 
		<tr>
			<td>视频名称</td>
			<td><input type="text" name="videoname" value="<?php echo $row['videoname'];?>"></td>
		</tr>
		
		<tr>
			<td>视频类型</td>
			<td><select name="videotype" id="">
		<option value="0" <?php if ($row['tid']==0) echo "selected";?>>电影</option>
		<option value="1" <?php if ($row['tid']==1) echo "selected";?>>电视剧</option>
		<option value="2" <?php if ($row['tid']==2) echo "selected";?>>动画片</option>
		<option value="3" <?php if ($row['tid']==3) echo "selected";?>>原创</option>
			</select></td>
		</tr>
		<tr>
			<td>视频简介</td>
			<td><textarea name="intro" id="" cols="30" rows="10"><?php echo $row['intro'];?></textarea></td>
		</tr>
		<tr>
			<td>视频海报</td>
			<td><input type="file" name="pic"> 原头像：<img src="./posters/<?php echo $row['pic'];?>" alt=""></td>
		</tr>
		<tr>
			<td>下载地址</td>
			<td>
			<input type="text" name="address" value="<?php echo $row['address'];?>">
			</td>
		</tr>
		
		<tr>
		<td colspan="2" align="center">
			<input type="submit" value="修改">
		
		</td>
		</tr>
		 </form>
	</table>
</body>
</html>